<?php


namespace App\Models\ProductCenter\Models;


use App\Models\ProductCenter\ProductModel;

class CategoryModel extends ProductModel
{
    public $table='category';

    public $fillable = [
        'name', //varchar(64) CHARACTER SET ' NOT NULL DEFAULT '' COMMENT '品牌名',
        'parent_id', //int NOT NULL DEFAULT '0' COMMENT '父级id',
        'ids_url', //varchar(255) CHARACTER SET ' NOT NULL DEFAULT '' COMMENT '当前ids路径',
//        'create_time', //datetime DEFAULT NULL,
//        'update_time', //datetime DEFAULT NULL,
        'create_user', //varchar(64) CHARACTER SET ' NOT NULL DEFAULT '',
        'create_user_uuid', //varchar(64) CHARACTER SET ' NOT NULL DEFAULT '',
        'status', //tinyint(1) NOT NULL DEFAULT '1',
    ];

    public $casts = [
        'ids_url' => 'array'
    ];

}
